Check that data to be drawn is not undefined