Fix #393, fix open notebook with uri type

Check the right property 'type' instead of 'uriType'. This was
regressed in 385af695.