I presumed it was fine to pass a `nullptr` into the algorithm setter function, but apparently it is not.