Executes the receiver function safely, returning null if an exception occurs.
The result of the function or null if an exception occurred.
The input type for the function.
The output type of the function.
The input value for the function.