fix(build_image): Don't unmount when the rootfs isn't mounted

This function is never called when rootfs is mounted but leaving in a
check for it as a just in case sort of thing.