client/extensions.lua: Log errors properly when an extension has invalid syntax