Fix the if to display message about failed recording only when needed.