Keep track of Panel in ErrorMessage instead of Window.

This makes more sense for most classes in this program because most are
children of the MainWindow. For the few exceptions, I can simply
reference the content of the window. This also made the ErrorMessage
code a little cleaner.