Add MessageError dialog if a NPE occurs when retrieving  a resource path