[FIX] mail: misc bug fixing

The error will not be raised from get_object_reference() because the group "Whole Company" will always be in database as it's defined in data file of mail module