I would guess something else has gone wrong before it hits this line... check the console in your browser to see if any other errors are being reported - particularly things like missing files etc.
Also - might be worth trying the same package on the MoodleCloud site to see if it's isolated to your particular Moodle server.