fix crash when attempting to retrieve last message /w up arrow when there was none