Undefined being displayed in place of post when editing memberships

Fix issue with 'undefined' being displayed in both the membership list on the page and in the select post drop down when no post has been set for a membership.

Also a small whitespace tidy up that made the code a bit hard to quickly grok.