Mms: Fix mms Null Pointer exception when running monkey test

InsertionHandleView dismiss again after onDetached()

Dismiss only if PopupWindow is showing.

CRs-Fixed: 713460

Change-Id: Ic60443b9e557184031678516dc3665bf61b78bf7