Fixed error when query returns 0 results;

After i updated vendors i receive error:
Warning: current() expects parameter 1 to be array, boolean given [...]/Knp/Component/Pager/Event/Subscriber/Paginate/Doctrine/ORM/QuerySubscriber.php line 63 

When query returns 0 results, $countQuery->getQuery() returns empty array instead of array('key' => 'value'). 

current() returns FALSE instead of 0 when empty array  is passed to function.