debug: ignore empty strings in enable()

Stops the unnecessary /^$/ regexp from being "enabled".