Kirsty Gilmour was penalised for exceeding two-minute limit for a bathroom break during the YONEX All England Open match.