check if we got an intent, report errors
improved protection against failed insert