On two theta function identities of Ramanujan