return null for blank query text