Fixed error where historical data req would wait forever on error.

Also changed the way hasGaps int values are handled by transforming
them to bool instead of str.