Fixed bug caused by searching for posts from non-existent user