The Evolution of Stellar Mass in Galaxies in the NICMOS Ultra Deep Field