Fix if write_connection config is null, default to connection.

Amendment to previous pull-request. Using the default parameter in `config::get` won't work because the default config key still exists in ormauth config. However changed, if config value is null, default `$_write_connection` to `$_connection` using conditional statement.