Adding support for fetching logs from the SafariDriver.

Fixes issue 5045.