AUI-880 Getting length of undefined in form validator getField function throws error

Hey Iliyan,

This fix required for an LPS which you can check here: http://issues.liferay.com/browse/LPS-34539

Bests,
Levente Hudák