MapperGLCanvas: avoid segfault on right-click with no active shape