Fixed the constructor typehint for the client

Passing null for the client is invalid. It would trigger fatal errors when using the driver.