change empty plan has_next? to false
fix command
errors are formatted different on jruby
don't perform serialization if no parameters given