Add nullptr checks for glowwindow (refs #67)