how could owner or role be nil? it would not pass the validation (also would not make sense to exist) where did you encounter issue?