Bugfix registry inconsistency

If an image fails to build when adding a subuser from a temporary repository don't delete that repository thus leading to registry inconsistency(subuser pointing to non-existent repository)