Added error checking to rbm.daydream