Changed default getRoles so that it works when relation is defined as a function
Fix to error propagation
Don't try to fetch uninitalized relations