Merge pull request #2034 from khaledhosny/cmap-notdef

[cmap] Check GID before adding ranges in format 4 & 12