Stop panel from being removed if attribute data-id persistent exists

Reference to issue https://github.com/jquery/jquery-mobile/issues/6490