Bugfix: Avoid null bitmap bug.