As it seems you've called this method before the required language-entries have been loaded
Call-trace:
Show BBCode for the error-message (to post somewhere)