Added an additional condition in bubbleEmpty to ignore date objects.