Handle when data is undefined.