Revert "Allow empty `rewrite' filter patterns"

This reverts commit a0358cb19fa3bd2cd24b58f03980d40204defba0, since it's
not possible to determine when to apply a `rewrite' filter rule with an
empty replacement string.