return if api_result not defined
Merge pull request #1227 from killerfish/githubret

GithubJobs: handle empty response