MDL-43089 fix JS when qbank is empty.
MDL-43089 still taking logic out of the renderer.