Fix for correct return value in case of --riskcheck option