[JavaScript] - fixes for xfRequiredEmpty