Only calling curl_multi_select when there are active handles

Calling this function on some versions of PHP can cause the select
to select until the specified timeout value (default of 1 second).
Closes #759.