LPS-49741 verify typed model by not allowing null for classNameId

LpS-44802 already resolves the upgrade issue in 6.2.x but for clients that have already upgraded the problem still exists.

the reason that classNameId cannot be null in the DB is because of our dynamicQueries. We search for entities based on classNameId (e.g. = 0), if classNameId is set to null in the DB the query does not find the entity and therefore the return results are incorrect.

https://issues.liferay.com/browse/LPS-36407 is what adds the classNameId as a criterion for export dynamic queries