Make the forward_mercator function's handling of edge cases better.