Fix: Panic if role based activity not present.

Merged Akshay Bharambe requested to merge ab_Fix_PanicOnRoleValidation into devbranch