Added null check for missing build result