Improved OnEntitySpawn entity validation.