Fixed a bug where the curve widget would display crap if no curve were to be displayed.