Fix endless loop in tilesInBounds when bounds are a thinner than one column.