[grunt tasks -> release] correct check if task failed