Don't make PROGRAM-ID attribute compulsory.

Assign an id of -1 by default.

Fixes #11644
(cherry picked from commit 53fb605090e2225b82f6826e26c08f26261eaeb1)
Fix issue accessing crossreferenced tables after using Video.create()
(cherry picked from commit 87d42de1e116c9db9a686468a7c1497df46c19c0)