Use `null` comparation instead of `is_null()`
Merge pull request #1093 from malukenho/patch-2

Use `null` comparation instead of `is_null()`
Fix bulk insert code example 

Previous code example did not flush all entities when entity count was not a multiple of batch count.
Merge pull request #1094 from thekeyboardbum/master

Fix bulk insert code example