Added a try-catch-block so it will not crash when the tick handler
conflicts with another mod