Update blockcategories.php

hi
in some categories nright and nleft is empty and we have sql error 
so in line 207 i addedd if to fixed bug