fixed bug that crashed program when searching for books as an anonymous user.