fix nameless partial expression exception if there is no matching partial

`{{> 'some' + 'missing' + 'partial' }}` doesn't match a partial and doesn't have a name, so it throws an exception in `isHashedId`. This skips looking up a partial by name if there is no name.

It also, guards against falsey values in `isHashedId` for posterity.