Fix anchor not set if alignToAnchor is false, closes telerik/kendo-ui-core#178. Add a test.
(cherry picked from commit 4570324)