Fix to avoid ambiguous method calls when type inhabitation fails and returns null