Issue 4816: Script panel claims No JavaScript when it means "you're stopped on a breakpoint on some other tab"

Steps to reproduce

  1. Click this button
  2. Step 2
  3. Step 3

Observed result