Fixing percolation of documents with TTL set

When a type is configured with a TTL, percolation of documents of this type
was not possible. This fix ignores the TTL for percolation instead of
throwing an exception that the document is already expired.

Closes #2975
Iter 1.
Iter 2.
Tests.