Image Annotation Tool: Fixes _isOpenSeaDragon function

Port fix for Annotations #5305 into this week's release candidate.

@andy-armstrong