[#138] Throw exception on invalid transaction type

This allows it to be caught in the appropriate place, and the rest of
the activity sucessfully imported, instead of failing at database
commit.