BZ-1169631: Task form resizing - fixed issue with empty forms