Replace checks for `entityName` on NSManagedObject subclasses with `nameOfEntity`

`entityName` is declared on NSObject and was causing validation warnings when submitting to the App Stores.