Ensure $app is null