prog: fix crash in createResource
prog: fix crash in createResource

We may be in createResource but have no resources at all because of ANYRES
that are not in target.Resources.
This is actually the case for some test targets. We have resources there,
but syscalls that create them are disabled.
In such case we crash in Intn(0).
Check that we have some resources before calling Intn.

google/syzkaller,xairy/syzkaller,google/syzkaller,xairy/syzkaller,xairy/syzkaller,xairy/syzkaller,google/syzkaller,xairy/syzkaller,google/syzkaller,xairy/syzkaller,google/syzkaller,xairy/syzkaller,google/syzkaller,google/syzkaller