Fixed crash where NSNull found