Fixed NullPointer if there are no try blocks in the method body