misc: Fix traceback when showing a parentless error dialog