RT#988316/ISTWCMS-3213: Properly detect success of uw_wcms_tools_jira_api_query()
This has always returned an object. Previously, this was iterated on directly. In c40145d2, the return was set to a variable which was checked before iterating in case it was NULL. But the check was for an array.