Prevents re-opening the popup if it's already open.