Correct bugs introduced by another patch on branch stock search

Corrections to avoid the product search that don't have manageable stocks

Change-Id: I54edfd73fc6e6994bb7bbdc064de1a677999093e
fixes: http://bugs.async.com.br/show_bug.cgi?id=5536