Properly initialize ima flag when adding file measurements