'Gray will take a lot of heart from defeat at Celtic'