Fix PHP error in addCurrentLanguageStatement function if getCurrentQuery() returns NULL