Fixed typeof in interactive legend
Try/Catch on spatialite load failure