Content processing spinner doesn't go away until the page is refreshed

The "Processing this file.
Grab some tea and sit back." message doesn't go away once the content item has been processed. If the page is refreshed the content is shown.

This issue is found on the file preview. High Priority due to the user experience presented.