BUG: The display units handler was accessed without checking its existence and this caused the magnify tool to crash on an empty viewer.