SMS Plugin: Fix null pointer error.