Assign the posts format spinner to an instance variable instead of using findViewById each time we save.

Also added a null and index check when getting post format value. Fixes #1449
Merge pull request #1450 from wordpress-mobile/issue/1449-post-format-npe

Fix NPE in EditPostSettingsFragment