Fix handling of unnamed methods (e.g. "get" or "create").