Prevent errors when passed empty modules in bundle.

If the function body is empty, a `range` value will not be defined on the body and an error will be thrown trying to access its properties.

Thanks! :)