Remove empty context paths in BPKHandler.