I believe that any métro station will sell you an RER ticket to your destination, thus avoiding our little problem. Yes, you can buy your ticket ahead of time if you want - as long as the ticket hasn't been passed through the turnstile, it'll remain valid.