Fixed a few bugs which caused bugs when raytracing in a SphericalGrid.
Fixed a bug in the Camera class which caused problems when the ray
misses the grid.