[gazebo_ros] Fix for #246

Fixing issue #246 in gzserver.