Fix crash on double clicking gradient cuves with mesh tool
Check if the selection contains a mesh before adding mesh rows or columns. These guards prevent Inkscape from crashing when double-clicking gradient curves using the mesh tool.
Fixes: #1967 (closed)