I'd suggest removing the web.config key and disabling it in the database. You can do this in Settings under:
Content > Content management > Mobile development > Enable device profiles
Unfortunately, if you have any Device Profiles created and mapped to any layouts, you may still receive this error.