Only dismiss a system alert if it is present

(eg. not UIAElementNil)