Reward Informed Dreamer for Task Generalization in Reinforcement Learning