fix to findKeys query forming
Filter out null values from query results