null check for getOptionValues, fixes issue #5

Fixes issue #5.