Use master request when RequestStack available

Backwards compatible fix for #84.