fixed undefined data error when creating the display

it was calling data.toString(); with an undefined value.