fixes bug 893899 - make bugs callback robust to null or empty arguments

In the bug I pointed to a specific line, but both of these could be the culprit. It's hard to tell in minified JS and difficult to repro locally.