fix removal of user without function keys

reason: deleting a user without function keys results in HTTP code
500. get_func_key_by_template_id() returns false when no func_keys are
associated to the user, but this is a valid configuration and we
should continue deleting the user