fixed getParent to return a promise when the controller isn't loaded