Fix undefined notices when options are not properly configured