Fixed NPE in LayeredParser