Fix negative ResizeRelative values with terminal windows (Fix bug 5228)