EntityDao: fixed handleQueryException method