The Doctor turns around quick enough to grab Martha as she dashed towards him, wrapping her in a hug. "Martha!" and pulling away slightly to see her excited features, "How did you get here?" Maybe she could explain something UNIT had buggered up and he could fix it somehow.
It was rather irritating with missing details from his memory. It's happened before in the past, but not usually this long.