Do not notify about invalid identifier if none is specified
If no identifier is specified, there is no point saying it was not
found in the list of branches or in the git repo.
Fixes https://pagure.io/pagure/issue/4203
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>