[Contact] Add checking for constructor being called as normal function.

* [NABI-RSA] TDIS-5818
Merge pull request #335 from wcwang/next

[Contact] Add checking for constructor being called as normal function.