FIX: "Undefined property: Response::$entities..."

The method get_connections() tries to determine the count of connected entities in a faulty way.
This raises an "undefined property" notice