hmtslam: fix error with empty maps