[Tizen][Runtime] Add WGT csp handler unittest.

Add the unittest for WGT csp handler.

Fix a crash bug in WGT widget handler, which will cause the unittest
crash in some cases.