Fix patch mistake.

Fix the bug introduced by the patch intended fix the ownership of the
image files. A function that checks whether one user exist in the system
or not was always returning True.