OOIION-865
valid_until was coming back as a string so it was making a Date() comparison upset.  Fixed it.
Merge pull request #314 from cgalvarino/mask_is_valid-r2

OOIION-865