fix filter when value is zero which is different from null
(cherry picked from commit 6085f6418ca2bee8803852fda82e19a9d9761e25)
fix calendar view, when loading of calendars and view are parallel, we may see 2 times the same event
(cherry picked from commit 672f001cca464678bb75671dea1fc8e43b371c4f)