Tidy up log and debug methods in LogHelper

Changed the manual null check and String conversion in LogHelper to the static String.valueOf() method (which automatically performs a null check and handles it appropriately).