Fixed "'NoneType' object has no attribute 'tzinfo'" bug. #216