Updated pubsub validation for publishCreate and publishUpdate to ensure that only plain objects are emitted (needed due to changes in output from Waterline's toJSON)