Fixed NPE in console parsing.