Fix segfault on exit for OSX

On OSX, when you exit rviz you get a segfault. Apparently it tries to set an invalid camera pointer. Not sure if this is the best fix, maybe the reason the camera is invalid should also be fixed?

Related to issue 737: https://github.com/ros-visualization/rviz/issues/737