Issue #3178397 by yas: Fix an Internal Server Error: Call to a member function id() on null in aws_cloud_entity_operation()