Avoid crash in CURSORICON_GetFileEntry due to invalid memory access.