How 'Justice League' weathered supersized setbacks