my mistake:
$the_title .= " - ".WEBSITE_TITLE;
forgot the last charachter " ; ". That will generate an error causing the blank page.
Your solution starts with a test, it will only work on page-titles of less than 15 characters.
So on longer page titles you will not see the spacer and the website name.