It does check if it's a real function/CSS info before adding to the total, but if it's not, it just returns 0. It should verify that:
- module.script is not an array (that means it's an array of URLs)
- module.style.url is not set.
If either is, it should return null.