Fixed segfaults due to missing return nodes for methods with empty bodies