Handle unknown entities in PropertySQLLookup::getMainSnaksByPropertyId

Bug: 46707
Change-Id: Ia9ca32479a25986abd3e14ca6a96d26eba440457
Merge "Handle unknown entities in PropertySQLLookup::getMainSnaksByPropertyId"