small fix to Stemweb query result logic