Fix count value on error
Fix count value on error

Change-Id: If403e60228455ead005b4609213e1001a8c69f3b
Reviewed-on: http://codereview.qt-users.jp/1003
Reviewed-by: <42980d970444f9101663582e70cd53623b3238b4@gmail.com>
Tested-by: <42980d970444f9101663582e70cd53623b3238b4@gmail.com>

qt-users-jp/qmlplugins-database