I created the custom theme with no parent style so it was a completely separate style. So I just made the original default style active to test. I still got the same error. Created a new default style just in case... same error.
There are no plugins/products installed, but I put that bit of code in config anyway to test. Still got the same error.
sigh
Could this be a problem in the database?