Don't create a subbitmap of size 0

Fixes https://github.com/Tribler/tribler/issues/545.