make sure ExternalServiceReceiver type is stored
Merge pull request #115 from tablexi/ensure_type_in_esr

make sure ExternalServiceReceiver type is stored