Revert "Fix null reference exception."
Revert "Fix null reference exception."

This reverts commit 9e36329e9d3fa66d2bf56b0975cb40194d11b01c.

NativeScript/NativeScript,NativeScript/NativeScript,NativeScript/NativeScript,NativeScript/NativeScript,NativeScript/NativeScript