πΊπΈUnited States castella
#23 fixed it for me as well.
Attached is a patch file to use in the meantime.
πΊπΈUnited States castella
While getType() only works for nodes, bundle() will return the entity type if an entity type doesn't have bundles.