Fix notice when visiting  john/search/node/john

#4031