handle the special case of undefined model or collection attribute for closure context change