[PATCH 6.2 0851/1001] ima: fix error handling logic when file measurement failed