In both instances the Random movement model hits contact with the blue unit and thus counts as having charged per the random movement rule.. It then follows the normal rules of charging:
p. 20 ...A charging unit can move an unimited amount... ...the unit must straight ahead except that, during this move, it may make a single wheel of up to 90 degrees...
p. 22 Unusual situaions Sometimes a charging unit can move into contact with its target but cannot close the door because something is in the way... ...when this happens, the charging player should attempt to complete the charge in sich a manner as to avoid the obstruction. this can normally be achieved by increasing or decreasing the amount the charging unit wheels as it moves, or changing how the charging unit closes the door.
In both instances posted I would argue that it would move till it was able to get it's front into contact with whatever facing was charged.. But I can see why it is a problem and why people will argue the opposite of me and this clearly needs to be FAQ'ed.. It's one of the common grey areas of warhammer..