Revert "Fix do_readline checks, so the history is added to readline"

This reverts commit c86ed8d6c57cf9ed61e743a54bbc8a13c4a4ceb2.