Fix resource-by-subject queries with full URIs as identifiers

See #20

Deployed to staging:
http://test.lobid.org/resource?subject=http://d-nb.info/gnd/4000626-8