Fix RequestDispatcherRequestWrapper inconsistency between `getRequestURI` and `getRequestURL`

Fix for #861.
please use {} for all if statements, even the single-line one here.