The problem is only in b2g desktop, I'm running gaia-ui-tests there. Not sure what is used for travis. getThreads is throwing exception as noted in bug 958738. 

Hmm, if I wrap only getThreads in try catch I'll need then to check ```if (cursor)``` before attaching ```onerror``` and ```onsuccess``` callbacks, imo it will look uglier, no? :)