fix template warning when accessing empty contributor roles or groups