Backdoor entry, go out in another country then cross to Qatar. As long as you have a valid work visa, you can enter Qatar.

I've known few cases like you and they are all doing fine. As long as you will not work and your visa profession is not in the medical and food industry you are fit to work.