Fix error when viewing role with no flavor

If a role had no flavor associated with it, there was an error when
trying to access the role detail page. This fix ensures that the
text 'No flavor associated' is shown instead.

Change-Id: I6e13c062c3013cb98bf4a7d1d80bbeef9226a99e
Merge "Fix error when viewing role with no flavor"