Throw an error when we suspect getPanel() is null, to find bugs easier in the future. lp:1331724