Issue/930 alert class cast exception

Fix #930 - resolved ClassCastException in WPAlertDialogFragment. This is a hotfix for v2.6.2, full rewrite of WPAlertDialogFragment is in PR #932 for later release.