Generalization of #3091185 and #3091179

Drawing with enabled “Adjust Hydrogens” leads to crashes if initial state is not properly adjusted
Crash appears either instantly after first drawing, or after undo.


Regards,
Konstantin