fix #1544 npe in Post.getCustomFields

fix #1544 npe in Post.getCustomFields

Bug introduced by the location PR (Post.getCustomFields was unused before).