Fix non-pull-request build issue

Only add pull_request_id to the job payload if the id is > 0