Fix defined check in View::url

When checking for URL_REWRITING_ALL we should first check if it's defined,
and after which is its value.

See for instance http://3v4l.org/ED6iJ
Merge pull request #1569 from mlocati/fix-view-action-check-url-rewriting

Fix defined check in View::url