Fixes empty querySelector problem on empty hash