The site settings page could use a little better validation, I will look into improving it, it would be better to trap this error and give a good error message on the page.
I suspect you are inputing something invalid in a field that expects an integer. I don't really see how changing the skin can cause this error. I can create the error by inputing something invalid, but not otherwise.
Best,
Joe