Fixed bugs in core.clj to not choke on empty and varying requests