HIVE-8715 : Hive 14 upgrade scripts can fail for statistics if database was created using auto-create (Sergey Shelukhin, reviewed by Ashutosh Chauhan and Xiaobing Zhou)

git-svn-id: https://svn.apache.org/repos/asf/hive/branches/branch-0.14@1636490 13f79535-47bb-0310-9956-ffa450edef68