don't spawn a verify task on hook_update if the site is not enabled or a platform is locked or deleted. fixes #758682 comment #2 and #778924. update minor code style indentation.