added catch for when a taxonomy is empty
added a catch for when theme is inactive