the reason tolkein "got away with it", is because the wizards in the LotR were parts of creation, that is Valar and Maiar, they were part of the Creator's plan. very close to angels and demons come to Middle Earth. whereas the wizards in Harry Potter are very clearly humans that can manipulate magic, something forbidden by scripture.