Check if ID_FS_TYPE is set

I did some extra testing to make sure it all works well and noticed that this script gets called twice (haven't traced it), the first time getting passed an empty ID_FS_TYPE. This change checks if this value is set.