Fixed demographic gender acceptance test when None type is returned for gender.

* gender test was intermittently failing because `datum.get(gender, 0)` was returning `None` whereas the generated expected result should be 0

@rocha @clintonb