Small change so that hidden fields are only added to field-layout automatically if there is no fields-not-referenced element