Make paramters for mysqli->begin_transaction() optional

Fixes #2383