Fix a segfault when trying to tab complete the "core show uptime" command.