Return an error from get_min_latency and get_preferred_sample_rate if the context is null.