Fix error caused when dropping continuous queries.