FIXED bug: do not record null viewer is the component viewer's list
When testcomponents is ran, no viewer extensions are loaded. Application::getViewer(..) returns nullptr. As MeshComponent set its visibility in the 3DViewer, and there is no 3DViewer, nullptr was registered in the list. This caused a crash later on, when refresh() was called.
Showing with 57 additions and 51 deletions