Don't crash at the end of empty prints. #1042