closeReferencePanel
Close the reference panel, if it is open.
Ports upstream's closeReferencePanel command: returns false (so a keymap can fall through) when no panel is open, otherwise clears the referencePanel state and returns true.