fix compute dsn

Replace array_key_exists to isset, because if param is null, we can not
add null param to dsn string