Fix for NPE when no SIM card.

Hi,

Here is fix for issue when there is no SIM card installed and throws NPE.