Couldn't God have created everything from nothing? God is philosophically understood to be a self sufficient being. He is also understood to be all powerful, thus capable of creating something from nothing.
Seems a justified and tidy resolution to the supposed problem you refer to.