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

OOIION-865