Fix check for private and null context on post of a private program.