Fixed JS validation bug

http://support.advancedcustomfields.com/discussion/5352/flex-content-required-field-error
Signed-off-by: Elliot Condon <e@elliotcondon.com>