Making code for defensive/resilient to upstream REST API changes.
s/else if/elseif/ per code review.
Adding unit tests for boolean casting.
Merge pull request #347 from ycombinator/queues-defensive-code

Queues defensive code