add null device support to URLRewriteFilter