changed the check if wxWindow was created, use (getId() != wxID_ANY) for
that
remove test warnings from wxFrame