Empty settings or Categories causing error checked at app controller