Fixes unset discoveryOptions exception.