Fix traceback in mount.mounted state

This fixes a traceback introduced in 0c9bcab3.
Merge pull request #6526 from terminalmage/issue6522

Fix traceback in mount.mounted state