Bugfix to allow CA or CA-BC realmCodes
Fix PDC-001 query to handle null genders

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