Fix NullPointerException in TickHandler

This should work :worried: