Added error checking to Populate to avoid crashes with bad stock symbols.

Added error checking to Populate to avoid crashes with bad stock
symbols.  If a bad stock symbol is given the library would panic due to
trying to cast nil to string.  Improved and added some test cases to
cover this condition as well.