Fixed missing account exception in TimezoneMiddleware

Fixes #79 and #80.