Widget Factory: Fix rendering negative progressbar value

Closes gh-454