Fixes precondition checks

If timeout-response is specified, timeout-handler must not be provided.
Otherwise timeout-handler must be ifn?.