Check EPMap and return ERROR_PSMF_NOT_FOUND if empty

Fixes #5051