Support a canceled state for status images.

The queries needed to be changed to consider canceled a valid
state for finished builds.

Fixes travis-ci/travis-ci#1592