Checking if redirectTarget exists

@relwell fix for getRedirectTarget fatal error.