gracefully handle history API support