Added check for whether print layouts were returned from specified URL and set error if not.