Bugfix to handle the case where a method was not tranformed, so code was adding an empty method