First of all I wonder how'd you manage to get your visa approved. As far as I know, you have mentioned that you left the country on the same date of your ID expires, if that were the case I think you made a big mistake by not having you RP canceled. If you leave the country without canceling your RP then you should stay 180 days (6 months) out of country in order to apply for a new Visa or to Qatar. Now most of the ememployers do this to their employees who resign before the end of contract as they don't want them to come back and join a competitor company.