[nim] get_data_point() now checks if queue is not empty before calling get() on queue so that we do not get into infinite loop on get