adds a null check for act in runnable