get_error_message.m needs to always provide the error string, only throwing out the error message needs to depend on noprint Closes #1714 (cherry picked from commit b7ef2181)