Fixed a bug when deleting the second last post in a forum
Also added a check if the forum isn't either a category or has a parent