Generalize check-model in NonLinearExtension for quadratic equations (#1892)