Fix an NPE when possibly displaying the volume panel.