NPE when getting unknown Entity Caps

Description

We shouldn't look up entity capabilities by hash, if the hash is null. The lookup will result in null, but generates nasty stack traces like this one:

Environment

None
Fixed

Assignee

Dave Cridland

Reporter

Guus der Kinderen