I think that's a great way to use a cleaner that is defective--particularly in the case of the motor. The real genius, of course, would be to figure out a way to attach the lamp so it could be easily detached and still be used for cleaning if it weren't defective.
A canister could be set on its back end, fitted with a glass that would fit snugly in the hose inlet, and used as a flower vase or a small tv lamp (just saw one in a resale shop) could be fit into the hose inlet. There's all sorts of possibilities!