Prevent Error when asyncResult is null

Detected error: TypeError: Cannot call method 'forEach' of null