The Hele-Shaw problem with nonlocal injection conditions