In messages "List Resources Response" and "List Modules Response", if `pathElements` and `error` are both null, default to an empty list.
In messages "List Resources Response" and "List Modules Response", if `pathElements` and `error` are both null, default to an empty list.