Fixed broken AIP file download view.

fixes #4679

Fixed the AIP file download view, which was trying to pull AIP data
using a MySQL table that was replaced by an ElasticSearch type.