Fix unsigned char overflow check in rcBuildHeightfieldLayers

This fixes this issue:
http://imgur.com/GHgEkJp,Q4gg1C4,9PNyAiP

The Navmesh would sometimes fail to build in the correct area.
It would end up directly below the correct area.
This commit fixes this issue.