imaging: Fix master unregistering

Refs #2458