KARAF-2154 - Entering an empty command removes previous command in history