I can verify this behaviour with nvidia driver 169.21 and I am getting the same GL_INVALID_ENUM. The way I read the spec is the same as you two, it should not check texture target when texture id is zero. It could look like they forgot this check in the driver. Do you submit the bug V-man?