Fixed searching for 0 amount items. Adding some logging

Change-Id: I61565e427b37d926d429d6accdab8c6279b4eb20