Check for valid bounds before using it
Merge pull request #55 from OpenGeoscience/fix_bounds_computation

Check for valid bounds before using it