Emirates flight EK31 was operating between Dubai and London when a medical emergency on board forced it to land in Frankfurt