No errors if no resources added/selected

Currently if you have no resources added, then you get a 'cannot find id of undefined' error when pushing events.
Added a simple test to prevent erroring and wierdness developing.