SWC-430: check that the entity exists before redirecting to the entity page
add new test around HomeSearchBox
from code review
Merge pull request #548 from jay-hodgson/SWC-430b

Swc-430: do not redirect search to the entity page unless it points to an entity that exists in the system (and that I have access to).