Fixing a crash when !pixiv is not passed search terms

Line #44's `arr === null && term` evaluates to false due to `term` (`''`) evaluating to false. Subsequently line #47 crashes with `TypeError: Cannot read property '4' of null`.