Handle resource path not found exception more gracefully.