make sure scores are defined before querying

When calculating gene score distributions, the GtStatVisitor fails to check if scores are defined before querying them, causing an assertion to fail if scores are missing. Closes #377.