Bug #2315: Uncheck context on update if context doesn't exist

As a bonus, set memory default on VM template create