Fix to SubPortProxy#on_data to prevent crashing due to raw_data call on ...

...ruby types as suggested by doudou on the rock-dev mailing list.