fix build_queue crash when no profile was set and the build failed