instanceof returns false if null value is tested