That is the risk, if Trump is robbed of his nomination, he could run as independent and take with him anything between 5-15% of the votes IMO, most of them republicans, it would be a landslide for Hillary.
Regarding Bernie going independent, he respects his party, has always said so, so I really doubt he'd make that move.