Remove stale injection targets on ajax error. Fixes #164