Empty string and no docstring are not the same for get_code. So I think this change is ok.