NullPointerException if attachments = null on pull request