Updated console logging. Fixes #108

Updated console logging to prevent crashes when given a null argument.