Changed the behavior when there is no request

Instead of returning null for getCurrentUrl, which might break the code
for getCookie and does not respect the expected return type, the method
will throw a DriverException, as this is an invalid usage of the driver
anyway.