Fix add feature dialog for attribute-less layers
Fix #10351