[nim] Refactored get_data_point on LineGraph to use exception catching. Leaving the checking of emptiness of the queue to the queue object