Handle null or empty source file attributes gracefully