Fixed bug in symfony appkernel replacement