Update prompter.py: add protection against empty lines

Signed-off-by: Michael LeCompte <michaelslec98@gmail.com>