Disabled a missing selector warning and added a nil check to prevent a crash