Avoided segfault on accessing m_pLibraryWidget which was not created.