fix(views): prevent output of empty heading when there is no page title

fixes #7387
i know, but you also have this in the coding guidelines http://learn.elgg.org/en/1.9/contribute/code.html#ternary-syntax:
```
Ternary syntax

Acceptable only for single-line, non-embedded statements.
```