A terminally ill teenager was placed into a coma after being left on trolley in a Glasgow hospital corridor for 14 hours.