fixes promise resolutions that probably leads to inconsistent stock graph behaviour. refs item:764
minor coding standard fixes. refs item:764
changed to more descriptive function name.
Merge pull request #486 from jofomah/bug/incorrect-stock-graph-especially-after-migration

Bug/incorrect stock graph especially after migration