Fix the error handling for CMaps that fail to load

Re: #5185.

/cc @yurydelendik