Fix snippet when there is no request

Sometimes request is nil, e.g. when using snippets from mailer views