WFLY-3138, check Model Type to fix IllegalArgumentException when calling invalid asPropertyList method.
Merge pull request #6427 from soul2zimate/WFLY-3138

WFLY-3138, check Model Type to fix IllegalArgumentException when calling invalid asPropertyList