fix bug where load more posts fails when no query is set