There's some weird hidden state going on in Operator subclass

Update: I couldn’t find a solution to that, but I’ve tried a workaround and I’m facing more problems now: Script crashes Blender - Is there a way to somehow bypass the hidden states set by UI widgets?