[PATCH 6.1 745/885] ima: fix error handling logic when file measurement failed