hector_gazebo_thermal_camera: Fix bad bug with index access