- Fixed two crash bugs in clip tool.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>