Bug 997246 - Prohibit blank domains

Needed to use allow_nil instead of allow_blank

@abhgupta Please review