Skip nils when filtering tags

The tag filtering block can get a nil value, so we need to catch it.