Shortcut for getOrNull
Execute code on the tracked component.
Gets the component and if the component is not null executes the block with the tracked component as parameter.
Will return the result of block or null if no component is tracked.