Fix PDC-001 query to handle null genders

Signed-off-by: Jeremy Ho <jujaga@gmail.com>