Fix typo in t_credstore.c

Correctly check whether the next argument is NULL in the while loop
which parses store elements.