Testing and handling Groups Controller error

If an error was encountered on the either create or update, the @group
instance variable was not being set and instead would throw an error.