Update suggestions when user presses the backspace even when there is not two or more suggestions

Bug: 5384445
Change-Id: I419999da8f5745ac114d0173beeadcb365a8c3ac
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 48a1f8b..cf1cb8f 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1661,9 +1661,13 @@
                 builder.setTypedWordValid(typedWordValid).setHasMinimalSuggestion(
                         autoCorrectionAvailable);
             } else {
-                final SuggestedWords previousSuggestions = mSuggestionsView.getSuggestions();
-                if (previousSuggestions == mSettingsValues.mSuggestPuncList)
-                    return;
+                SuggestedWords previousSuggestions = mSuggestionsView.getSuggestions();
+                if (previousSuggestions == mSettingsValues.mSuggestPuncList) {
+                    if (builder.size() == 0) {
+                        return;
+                    }
+                    previousSuggestions = SuggestedWords.EMPTY;
+                }
                 builder.addTypedWordAndPreviousSuggestions(typedWord, previousSuggestions);
             }
         }