[Console] fixed input bug when the value of an option is empty (closes #6649, closes #6689)