Reject update request that has both script and doc

See #2967.