Made UserAgent optional when registering a driver