Fixed a crash from building games with no overlays

Overlay size is now checked before the vector is allocated.