added null check to web view to fix crash