fix error updating pagetitle with notify count if not logged in locally (no notify count available)
getElementById returns null on failure