fix not setting undefined keys to None in amplitude def