Fixed notice when deleting entities is disabled.