Yes, it's safe; I often use my duty belt (with my phone in a pouch on it) to test the machine on startup. The X-ray machine doesn't access any data - it just shines x-rays through the device to image the physical interior of it. Why would an airport security scanner indicate something when nothing is present?