Make Resolver's callback argument optional when the Future result is used.
Ensure the result variable is initialized even when an exception is handled.