Fixed error in Compiler. No root was returned in case no where clauses were present in the query.