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

fixes #7387