NoneType Bug

Added check for NoneType in data[0][1], if data[0][1] is NoneType it will break the loop in the scan folder.