Bug fix. Stop realtime if no data is available for display