LP#1359934: prevent error opening patron search form