Nginx: Fix for regression in "Rewrite legacy requests with /index.php to extension-free URL".