algo: fixes in automata union algo

Ing. Jan Trávníček requested to merge fixup_automata_union into master

Merge fix of automata union.

Merge request reports