Fixed NPE in try conversion.