pe::System: Don't try and handle events when there is no event polled