[#1180] Raise 404 for org or group if called wrong

Raise a 404 if a group is called by organization_show
and vice versa. Fixes #1180.