Don't make PROGRAM-ID attribute compulsory.

Assign an id of -1 by default.

Fixes #11644