Redirect on nonexisting entry

Redirects to edit page if entry doesnt exist.