double-click to edit: check for edit URL before attempting to redirect

After double-clicking a page without edit link (no edit access) user was redirected to /processwire/page/undefined. An easy fix for this is to check whether edit URL was found before attempting to redirect.