regex validator refuses params with nil value

Fixes #608