Check building DM for NULL before releasing