Fix traceback while performing volume encryption tasks

This is a regression from the WebUI admin user account change.

Ticket:	#3504