Update hook to allow NULL values in entity_updated and last_sync columns