Fixed an occurrence of IllegalStateException when cancelling rendering futures