Catch setMaxBounds errors