Safety check on hide labels (fixes #715)