Board Thread:Lua Help/@comment-5068292-20150131070710/@comment-5068292-20150131131726

Doing what you suggested, by replacing frame:getTitle with mw.title.getCurrentTitle resulted in another script error:

Lua error in Module:Citation/CS1 at line 2525: bad argument #1 to 'find' (string expected, got table). Backtrace: [C]: in function "find" Module:Citation/CS1:2525: in function "chunk" mw.lua:425: in function "chunk"