Update bywaf.py

Added a try-catch in do_history to prevent failing when history is empty