models/search: Empty searches return nothing

An empty query map now returns no results, not every one within the
database.

Issues #262, #260.
js/search: Use empty string if there's no pI value

This prevents "undefined" being shown in the results table for records
without a pI entry.

Issue #276.
Merge branch 'issue/276'