Fixed #400 - writeInputAttributes fails when anonymous rules are used