I think I've solved it. The line:
if (Page == null || Page.Data == null)
... appears to have been causing the problems. Once I changed it to:if (Page == null)
The title displayed!