Fix the generating of revert queries on multiple lines
When generating a revertquery for a source that does not have any SAI at the moment, generate a DELETE FROM smart_scripts line as well