ci: Handle an uncaught exception

Properly handle and print an error message if a valid GitHub pull
reqeust isn't given with --pull-request option.