added null checker to onLoad method

to check if the quotes have been loaded