Olaf is part of a long Disney tradition of comic relief sidekicks that feel somewhat incongruous with the more heavy thematic ideas being addressed. Sometimes it works better than others.
The most egregious examples, of course, are the gargoyles in THE HUNCHBACK OF NOTRE DAME; it's a testament to how great the great stuff in that movie is that the gargoyles don't totally destroy the movie's effectiveness.