Checking for scan dismissal before handling preview rotation. Resolve #82.