Bug 1081599: Don't check nullity before instanceof. r=rnewman

Reviewed on Bugzilla.