Ubsan not detecting function calls on empty optional

showcases undetected UB and my workaround to at least detect the problem at runtime.

it seems ubsan does not detect member function calls on an empty optional containing the object.