Modified mapfile.c for ticket #4568.