fix 116: vote api will return null for image url if it's missing

also added a test to see that a vote with an agenda is returned without
error.

oh, and automatically removed whitespace from some line endings