Queries and fragments should be truncated by normalization if empty.

Fixes #130.