Fixed crash when rewrite rule is not an array