Fixed warning in iOS 8.

Fixed this warning : "Snapshotting a view that has not been rendered
results in an empty snapshot. Ensure your view has been rendered at
least once before snapshotting or snapshot after screen updates."