You still have RP on your passport, this is the main thing they check at immigration and not your Qatar RP card! Once you enter back into Qatar, you can go to MoI and report your card lost and then proceed the procedures to get a new one.