Prevent EmptyStackException in case no stack of prompts is empty