Fixes 500 error when user types in wrong group name.
Merge pull request #5512 from jhollingsworth/feature/missing-group-500-fix

Fixes 500 error when user types in wrong group name.