This isn't verifying that there is no active call, it's verifying that a JavascriptException is raised. There are many reasons such an exception could be raised, so I would consider this a potential false positive.