v2.2.2: NULL in setValue for INVALID_VALUE_MODE_EMPTY
Problem: When INVALID_VALUE_MODE_EMPTY is configured for AjaxSelect and selected value is invalid and then set to NULL, an error was thrown in 'count($value)'. Solution: check if $value is array before the count so the NULL value is evaluated as FALSE and count is never checked.