Although not the best way to handle it, I managed to solve the problem. My solution requires editing the paginator.php inside the vendor folder. Changing
return '<div class="pagination">'.$content.'</div>';
on line 188 to
return $content;
solves the problem.