Fixed PHP-816: Improve numeric check for write concern option.