Changed so that predictions will not crash 

when the provided stream has no datapoints. The prediction will now return an empty list.