Fix new page notifications

Also changed order of conditionals in initObserver() so that the
message-container check is first - this should be more efficient.