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