Fix owner_id bug. Closes #348

This commit keeps the owner_id if the application if a root user
updates an app