Move try-catch during creation of sequences into the function rather than around the lazy initialization.

This fixes an issue with VS breaking on the exception because it thinks it will go unhandled, even though it will be handled.
Merge pull request #5731 from RoosterDragon/sequence-initialize-fix

Fix #5452