Revert "Fix NPE if trying to release build.bnd"

This reverts commit dd5d6b432431953ef1cfb49646c7d11a984c92c5.