Fix uses of next param for redirects where param exists but value is empty.