Added more hardening against null modpack builds.

Signed-off-by: Dalton Pelc <daltonjpelc@gmail.com>