Hasbro’s relationship with Disney may complicate the toymaker’s potential buy of DreamWorks Animation, an analyst said.