make sure scores are defined before querying
Merge pull request #378 from satta/scores_defined

make sure scores are defined before querying