Update traceback_path.cpp function to check for NULL model

Functions that require HMM model will now check and return
warning if model is not defined.