Fix bug if $cPath == 0

If  $cPath == 0 in url like this: http://localhost/oscom/product_info.php?cPath=0&products_id=15 bm_categories gives an error
Merge pull request #203 from acidvertigo/patch-15

Fix bug if $cPath == 0