fix npe when using partition clause with null
Merge pull request #824 from crate/m/npe_refresh_partition

fix npe when using partition clause with null
avoid unnecessary array creation in ESBulkIndexTask