When you say Dundee were glad to get rid of him, how do you know ? He actually returned to Leicester at the end of his loan spell and at the end of the season.
Logic would indicate that, by not using him the last god knows whatever games, his loan ending clearly didn't affect Dundee whatsoever as he had no impact and Dundee clearly decided they had a better player on their books already.