Do not apply the page/file picker selection if the picker is not active (see #5704)