imx: hab: Check if CSF is valid before authenticating image