Make bisect_profile more resiliant to user input

We would not check that the user actually enters a response. This
could cause the bisect to fail prematurely.

Test: manual
Change-Id: I6b9ab373e74a6594158c42ebe11b242eabfd0921
diff --git a/tools/bisect_profile.py b/tools/bisect_profile.py
index 7d323b7..21018e0 100755
--- a/tools/bisect_profile.py
+++ b/tools/bisect_profile.py
@@ -106,9 +106,9 @@
     while True:
       answer = input("Does the file at {} cause the issue (y/n):".format(
           args.output_file))
-      if answer[0].lower() == "y":
+      if len(answer) >= 1 and answer[0].lower() == "y":
         return "y"
-      elif answer[0].lower() == "n":
+      elif len(answer) >= 1 and answer[0].lower() == "n":
         return "n"
       else:
         print("Please enter 'y' or 'n' only!")