Trying to optimise code in the hope of fixing issue with long query.
Using single quotes instead of double quotes
Doing attachment parsing in separate method
Making constructed if-else statement more readable
Merge pull request #1640 from Yoast/stories/AM/unable_to_load_gwt_page

Trying to optimise code in the hope of fixing issue with long query.