Fix PHP notice in default excludes functionality