Update ApiSquidController.php

Unsure if this is the right solution, but without the system crashes when $ymax = $ymin and we end out deviding by 0.