Use a separate variable for resource id, because 'i' may increment at a
rate greater than 1 on each iteration.
Handle various ways that interrupt config data can be malformed by
warning and assuming more or less reasonable values.