Make sure mask fields have been provided

Ticket:	#5207