Revert "Fix #10337 - Allow attribute form on all features (new QgsFeatures are invalid)"

This reverts commit 9bdc932e9648d885352da772dc13687562617d43.
Fix add attribute dialog
Fix #10337