Fix an issue - server crash when no objects are detected