It might be so that if there is a tax treaty you will not be taxed but you may still have to prove that no tax is due, alternatively if they wanted to, the authorities could de facto exempt foreigners by saying their income was covered by tax treaties and therefore no need for needless scrutiny.