Raise a ValueError if a string is passed to get_core_apps

It's such a common error, we should try and give a friendly error message when it occurs.