[select] Check for both timers and events before breaking

Change-Id: Ib41b8641791f60ffb03dc2cc1b75cf418eb465a9
Reviewed-on: http://review.couchbase.org/28132
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>