Return false when obj is null in instanceof