Fix for collecting bugs

Fix for collection bugs which registered as a bug and have a related tasks too.
Merge pull request #31 from Mirantis/feature

Fix for collecting bugs