[Tizen] Copy and paste cleanup in xwalk package installer

I think these "if"s can be assertions instead, since this function is called only internally.