Add nil-check to Intersect

The Intersect template-method would fail if one or both of the lists were nil
(post vs page; post has tags, page has not).

This commit adds a nil-check and return a empty result if any of the inputs is
nil.

See #537